package com.simple.system.domain.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Set;

/**
 * @Description 新增用户-请求参数
 * @Author xiaoke
 * @Date 2024/8/10 18:00
 * @Version 1.0
 */
@Data
public class AddSysUserDto {
    @NotNull(message = "部门Id不能为空")
    //部门ID
    private Long deptId;
    //微信Id
    private String openId;
    //密码
    private String password;
    @NotBlank(message = "用户名不能为空")
    //用户名
    private String username;
    //昵称
    private String name;
    //用户头像
    private String avatar;
    @NotBlank(message = "手机号码不能为空")
    //手机号码
    private String phone;
    //年龄
    private Integer age;
    //性别(1 男 0 女)
    private Integer sex;
    //状态(1 正常 0 禁用)
    private Integer status;
    //备注
    private String remark;
    //角色Id
    private Set<Long> roleIds;
    @NotNull(message = "岗位不能为空")
    //岗位Id
    private Set<Long> postIds;
}
